package com.linan.base.mapper;

import com.linan.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void  save(T department);

    void update(T department);

    void remove(Long id);

    T loadById(Long id);

    List<T> loadAll();

    //分页相关的方法
    //查询总条数
    Long queryCount(BaseQuery query);

    // 查询对应页码数据
    List<T> queryData(BaseQuery query);

}
